import http from './http'

//获取顶部显示图
const getBanner = (name) => {
    return http.post(
        '/api/courseApi/getBannerByCateName',
        {name:name},
        { headers: { act: 'userLogin' } }
    )
}

// 获取分类
const getCourseList = (id) => {
    return http.post(
        '/api/CourseApi/getCourseList',
        {classify_id:id},
        { headers: { act: 'userLogin' } }
    )
}

export {
    getBanner,
    getCourseList
}